package com.jule.miaozhuapc.service.impl;

import com.jule.miaozhuapc.dao.RechargeDao;
import com.jule.miaozhuapc.dao.UserDao;
import com.jule.miaozhuapc.domain.WawaRecharge;
import com.jule.miaozhuapc.domain.WawaUser;
import com.jule.miaozhuapc.req.dto.WxUserInfo;
import com.jule.miaozhuapc.service.RechargeService;
import com.jule.miaozhuapc.service.UserService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import javax.transaction.Transactional;


@Service
@Transactional
public  class RechargeServiceImpl implements RechargeService {

	
	@Autowired
	RechargeDao RechargeDao;


	@Override
	public WawaRecharge findByOrderNo(String orderNo) {
		return RechargeDao.findbyOrderNo(orderNo);
	}

	@Override
	public WawaRecharge update(WawaRecharge wawaRecharge) {

		RechargeDao.update(wawaRecharge);
		return wawaRecharge;
	}
}
